package com.nmf.pc.enums.card;

public enum CardType {
	N(1, "N"),//hash/s
	A(2, "A"),//sol/s
	;

	public Integer value;
	public String name;

	CardType(Integer value, String name) {
		this.value = value;
		this.name = name;
	}

	public static CardType getStatus(Integer value) {
		if (value != null) {
			CardType[] otypes = CardType.values();
			for (CardType memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
